package com.tjetc._2function;

import java.util.function.Predicate;

public class _4Predicate {
    public static void main(String[] args) {
        testPredicate(integer -> {
            if (integer instanceof Integer) {
                return true;
            } else {
                return false;
            }
        });
    }


    public static void testPredicate(Predicate<Integer> predicate) {
        boolean test = predicate.test(1);
        System.out.println(test);
    }
}
